using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace WebUpdaterAdminCore.Models
{
    public class FileUploadInfo
    {
        /// <summary>
        /// 主键
        /// 文件md5值
        /// </summary>
        [Key]
        public string Id { get; set; }

        /// <summary>
        /// 原始文件名
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 文件保存路径
        /// </summary>
        public string FilePath { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public long FileSize { get; set; }

        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime UploadDate { get; set; } = DateTime.Now;

        /// <summary>
        /// 上传人
        /// </summary>
        public string UploadUser { get; set; }

        /// <summary>
        /// 归属站点名称
        /// </summary>
        public string SiteName { get; set; }

        /// <summary>
        /// 文件版本号
        /// </summary>
        public string FileVersion { get; set; }
    }
}
